import request from '@/utils/request'

// 查询受控端申请列表（分页）
export function severApplyList (query) {
  return request({
    url: '/sources/resourceApply/page',
    method: 'get',
    params: query
  })
}

// 同意受控端连接申请
export function agreeSeverConnect (data) {
  return request({
    url: '/sources/resourceApply',
    method: 'put',
    data: data
  })
}

// 申请详情
export function queryDetail (query) {
  return request({
    url: '/sources/resourceApply/detail',
    method: 'get',
    params: query
  })
}